package com.zeny.xdclass.controller;

import com.zeny.xdclass.config.WeChatConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName IndexController
 * @Description TODO
 * @Author zeny
 */
@RestController
public class IndexController {

    @Autowired
    private WeChatConfig weChatConfig;

    @RequestMapping("/index")
    public String index() {
        return "index: appid = " + weChatConfig.getAppid() + ", wxpay = " + weChatConfig.getAppsecret() ;
    }
}
